import Field from './field';
/**
 * 控制字段类
 */
export default class ControlField extends Field {
    constructor(options) {
        super(options);
        this.color = options.color;
        this.copyBtn = options.copyBtn;
        this.deleteBtn = options.deleteBtn;
    }
    eventProcessing(type) {
        this[type + 'Row']();
    }
    copyRow() {
        this.table.copyRow(this.rowIndex);
    }
    deleteRow() {
        this.table.deleteRow(this.rowIndex);
    }
}